package com.study.constant;

/**
 * 订单常量
 */
public class OrderConstant {
    /**
     * 订单状态 0待付款 1待出行 2进行中 3已完成 4取消中 5已取消 6退款中 7已退款 8待评价 9已评价
     */
    public static final Integer ORDER_STATUS_WAIT_PAY = 0;
    public static final Integer ORDER_STATUS_WAIT_TRAVEL = 1;
    public static final Integer ORDER_STATUS_DOING = 2;
    public static final Integer ORDER_STATUS_FINISH = 3;
    public static final Integer ORDER_STATUS_CANCELING = 4;
    public static final Integer ORDER_STATUS_CANCEL = 5;
    public static final Integer ORDER_STATUS_WAIT_REFUND = 6;
    public static final Integer ORDER_STATUS_REFUND = 7;
    public static final Integer ORDER_STATUS_WAIT_EVALUATE = 8;
    public static final Integer ORDER_STATUS_EVALUATE = 9;

    /**
     * 支付状态 0未支付 1已支付 2已退款 3退款失败
     */
    public static final Integer PAY_STATUS_UNPAID = 0;
    public static final Integer PAY_STATUS_PAID = 1;
    public static final Integer PAY_STATUS_REFUND = 2;
    public static final Integer PAY_STATUS_REFUND_FAIL = 3;

    /**
     * 下单次数限制
     */
    public static final Integer ORDER_TIME_MINUTE_LIMIT = 5;
    public static final Integer ORDER_NUM_LIMIT = 5;

    /**
     * 评价常数
     */
    public static final Integer COMMENT_STATUS_NOT = 0;
    public static final Integer COMMENT_STATUS_YES = 1;
}
